#ifndef CONSOLELOGGER_H
#define CONSOLELOGGER_H

#include "Log.h"

namespace Cvekas {

/// Implementation of Logger for showing log in console.
class ConsoleLogListener: public LogListener
{
public:
	/// Constructor
	ConsoleLogListener();

	virtual void add();
	virtual void remove();
	virtual void sendMsg(const std::string& msg);

private:
	HANDLE h_stdout;
};

typedef boost::shared_ptr<ConsoleLogListener> ConsoleLogListenerPtr;

} // namespace

#endif
